<?php


namespace App\severces;


class WechaSeverce
{
    public static function getOpenId($code)
    {

        $appid = 'wx55a9dcc6d6d484d7';

        $appSecret = '77f9a431ea92278ef47091a701508a83';
        //调用curl get 请求方法
        $url = sprintf(config('wx.url'),$appid,$appSecret,$code);
        $data = CurlSeverce::geturl($url);

        return $data;
    }
}
